package co.edu.unal.franquicias.visa.domain;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class CreditCardTransaction implements Serializable{
	
	private CreditCard card;
	private Float amount;
	private Date date;
	private ValidationStatus validationStatus;
	
	public CreditCardTransaction() {
	}
	
	public CreditCardTransaction(CreditCard card, Float amount, Date date, ValidationStatus validationStatus) {
		this.card = card;
		this.amount = amount;
		this.date = date;
		this.validationStatus = validationStatus;
	}
	public CreditCardTransaction(CreditCard card, Float amount, Date date) {
		this.card = card;
		this.amount = amount;
		this.date = date;
		this.validationStatus = ValidationStatus.UNKNOWN;
	}
	
	@XmlElement
	public Float getAmount() {
		return amount;
	}
	public void setAmount(Float amount) {
		this.amount = amount;
	}
	
	@XmlElement
	public CreditCard getCard() {
		return card;
	}
	public void setCard(CreditCard card) {
		this.card = card;
	}
	
	@XmlElement
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	
	@XmlElement
	public ValidationStatus getValidationStatus() {
		return validationStatus;
	}

	public void setValidationStatus(ValidationStatus validationStatus) {
		this.validationStatus = validationStatus;
	}
	
}
